﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="zytweb_final.index" ValidateRequest="false" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>北京中远通定重定尺系统WEB查询系统</title>
    <link rel="stylesheet" href="index.css" />
    <link rel="icon" href="img/ZYTlogo.png" />

</head>

<body style="background-color: #ECEAEA">
    <span id="only_span">北京中远通定重定尺系统  WEB查询系统</span>
    <br />

    <form id="form1" runat="server">
        <div id="print_div">
            <table style="text-align: left">
                <tr>
                    <td colspan="2">时间：<a id="time_print"><%=time_print %></a></td>
                </tr>
                <tr>
                    <td>定尺：<a id="cutlength"><%=cutlength_print %></a></td>
                    <td>流号：<a id="flowno_print"><%=flowno_print %></a></td>
                </tr>
                <tr>
                    <td>重量范围：<a id="weightrange_print"><%=weightrange_print %></a></td>
                    <td>允许误差：<a id="allowmistake_print"><%=allowmistake_print %></a></td>
                </tr>

            </table>
        </div>


        <asp:Table ID="select_input" runat="server" CssClass="InputTable">

            <asp:TableRow>
                <asp:TableCell ColumnSpan="1">
                    <asp:Label ID="lab_select_time" runat="server" Text="查询时间 : " CssClass="left_first"></asp:Label>
                </asp:TableCell>
                <asp:TableCell ColumnSpan="2">
                    <input class="textbox_size" id="tex_start_time" name="tex_start_time" type="datetime-local" onchange="weight_range_and_cutlength_and_time('tex_start_time','tex_end_time')" placeholder="请输入截止日期" />
                </asp:TableCell>
                <asp:TableCell ColumnSpan="1">

                    <asp:Label runat="server">&nbsp;至&nbsp;</asp:Label>
                </asp:TableCell>
                <asp:TableCell ColumnSpan="2">
                    <input class="textbox_size" id="tex_end_time" name="tex_end_time" type="datetime-local" onchange="weight_range_and_cutlength_and_time('tex_start_time','tex_end_time')" placeholder="请输入截止日期" />
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow>
                <asp:TableCell ColumnSpan="1">
                    <asp:Label ID="Label1" runat="server" Text="定尺长度 (mm):" CssClass="left_first"></asp:Label>

                </asp:TableCell>
                <asp:TableCell ColumnSpan="2">
                    <input class="textbox_size" id="tex_cut_length_l" name="tex_cut_length_l" type="number" onchange=" weight_range_and_cutlength_and_time('tex_cut_length_l', 'tex_cut_length_r')" 
                        placeholder="请输入定尺左值 ( 选填 )" />

                </asp:TableCell>
                <asp:TableCell ColumnSpan="1">
                    <asp:Label runat="server" text="&nbsp;至&nbsp;" />
                </asp:TableCell><asp:TableCell ColumnSpan="2">
                    <input class="textbox_size" id="tex_cut_length_r" name="tex_cut_length_r" type="number" onchange=" weight_range_and_cutlength_and_time('tex_cut_length_l', 'tex_cut_length_r')" placeholder="请输入定尺右值 ( 选填 )" />
                </asp:TableCell></asp:TableRow><asp:TableRow>
                <asp:TableCell ColumnSpan="1">
                    <asp:Label ID="lab_liu_num" runat="server" Text="流号 :" CssClass="left_first"/>
                </asp:TableCell><asp:TableCell ColumnSpan="5">
                    <asp:DropDownList ID="dropdownlist_liu_num" runat="server" CssClass="mistake_css">
                        <asp:ListItem>全部</asp:ListItem>
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                        <asp:ListItem>6</asp:ListItem>
                        <asp:ListItem>7</asp:ListItem>
                    </asp:DropDownList>
                </asp:TableCell></asp:TableRow><asp:TableRow>
                <asp:TableCell ColumnSpan="1">
                    <asp:Label ID="lab_weight_range" runat="server" Text="重量范围 (kg):" CssClass="left_first" />
                </asp:TableCell><asp:TableCell ColumnSpan="2">
                    <input id="tex_weight_range_l" name="tex_weight_range_l" class="textbox_size"
                        type="number"
                        onchange="weight_range_and_cutlength_and_time('tex_weight_range_l', 'tex_weight_range_r')" placeholder="请输入重量 负 差值( 选填 )" />
                </asp:TableCell><asp:TableCell ColumnSpan="1">
                    <asp:Label runat="server" Text="&nbsp;至&nbsp;" />
                </asp:TableCell><asp:TableCell ColumnSpan="2">
                    <input type="number" name="tex_weight_range_r" id="tex_weight_range_r"
                        class="textbox_size" onchange="weight_range_and_cutlength_and_time('tex_weight_range_l', 'tex_weight_range_r')" placeholder="请输入重量 正 变化值 ( 选填 )" />
                </asp:TableCell></asp:TableRow><asp:TableRow>
                <asp:TableCell ColumnSpan="1">
                  <asp:label class="left_first" Text="允许误差范围 (kg):" runat="server" />
                </asp:TableCell><asp:TableCell ColumnSpan="2">
                    <asp:DropDownList ID="mistake_range_l" runat="server" CssClass="mistake_css">
                        <asp:ListItem Value="-1">0</asp:ListItem>
                        <asp:ListItem Value="-2">-1</asp:ListItem>
                        <asp:ListItem Value="-3">-2</asp:ListItem>
                        <asp:ListItem Value="-4" Selected="True">-3</asp:ListItem>
                        <asp:ListItem Value="-5">-4</asp:ListItem>
                        <asp:ListItem Value="-6">-5</asp:ListItem>
                        <asp:ListItem Value="-7">-6</asp:ListItem>
                        <asp:ListItem Value="-8">-7</asp:ListItem>
                        <asp:ListItem Value="-9">-8</asp:ListItem>
                        <asp:ListItem Value="-10">-9</asp:ListItem>
                        <asp:ListItem Value="-11">-10</asp:ListItem>
                    </asp:DropDownList>
                </asp:TableCell><asp:TableCell ColumnSpan="1">
                        <asp:Label Text="&nbsp;至&nbsp;" runat="server"></asp:Label>
                </asp:TableCell ><asp:TableCell ColumnSpan="2">
                    <asp:DropDownList ID="mistake_range_r" runat="server" CssClass="mistake_css">
                        <asp:ListItem Value="+1">0</asp:ListItem>
                        <asp:ListItem Value="+2">+1</asp:ListItem>
                        <asp:ListItem Value="+3">+2</asp:ListItem>

                        <asp:ListItem Value="+4">+3</asp:ListItem>
                        <asp:ListItem Value="+5">+4</asp:ListItem>
                        <asp:ListItem Value="+6" Selected="True">+5</asp:ListItem>
                        <asp:ListItem Value="+7">+6</asp:ListItem>
                        <asp:ListItem Value="+8">+7</asp:ListItem>
                        <asp:ListItem Value="+9">+8</asp:ListItem>
                        <asp:ListItem Value="+10">+9</asp:ListItem>
                        <asp:ListItem Value="+11">+10</asp:ListItem>
                    </asp:DropDownList>
                </asp:TableCell></asp:TableRow><asp:TableRow>
                <asp:TableCell ColumnSpan="2"></asp:TableCell><asp:TableCell ColumnSpan="1">
                    <asp:Button ID="search" runat="server" OnClick="search_Click" Text="查询" CssClass="search_but" />
                </asp:TableCell><asp:TableCell ColumnSpan="1">
                    <asp:Button ID="print" OnClick="printPage" runat="server" Text="打印" CssClass="print_but" />
                </asp:TableCell><asp:TableCell ColumnSpan="2"></asp:TableCell></asp:TableRow></asp:Table><asp:ScriptManager ID="ScriptManager1" runat="server" />
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="true" UpdateMode="Conditional">
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="search" EventName="Click" />
            </Triggers>
            <ContentTemplate>
                <asp:GridView CssClass="css_GridView1" ID="GridView1" runat="server" CellPadding="4"
                    ForeColor="#333333" GridLines="None" AutoGenerateColumns="False" ShowFooter="True"
                    OnRowDataBound="GridView1_RowDataBound1">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="开始时间" DataFormatString="{0:g}" HeaderText="开始时间"
                            FooterText="总计：" />
                        <asp:BoundField DataField="结束时间" DataFormatString="{0:g}" HeaderText="结束时间" />
                        <asp:BoundField DataField="定尺长度" HeaderText="定尺长度(mm)" />
                        <asp:BoundField DataField="设定重量" HeaderText="设定重量(Kg)" />
                        <asp:BoundField DataField="误差范围" HeaderText="允许误差范围" />
                        <asp:BoundField DataField="总根数" HeaderText="称重总根数" />
                        <asp:BoundField DataField="合格根数" HeaderText="合格根数" />
                        <asp:BoundField DataField="不合格根数" HeaderText="不合格根数" />
                        <asp:BoundField DataField="合格率" DataFormatString="{0:p2}" HeaderText="合格率" />
                    </Columns>
                    <EditRowStyle BackColor="#2461BF" />
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EFF3FB" />
                    <SelectedRowStyle BackColor="#D1DDF1" ForeColor="#333333" Font-Bold="True" />
                    <SortedAscendingCellStyle BackColor="#F5F7FB" />
                    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                    <SortedDescendingCellStyle BackColor="#E9EBEF" />
                    <SortedDescendingHeaderStyle BackColor="#4870BE" />
                </asp:GridView>
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
<script type="text/javascript" src="js/moment.js"> </script>
<script type="text/javascript" src="js/time_helper.js"></script>
</html>

